<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich">
    <h:head>
        <title>Ingreso Administración Solicitudes</title>
    </h:head>
    <h:body>
        <ui:composition template="template.xhtml">
            <ui:define name="content">
                <h:form>
                    <center>
                        <rich:panel header="Iniciar Sesión" style="width: 300px">
                            <h:panelGrid columns="2">
                                <h:outputText value="Usuario: "/>
                                <h:inputText id="usuario" value="#{loginBean.username}"/>
                                <h:outputText value="Password: "/>
                                <h:inputSecret id="password" value="#{loginBean.password}"/>
                            </h:panelGrid>
                            <h:commandButton value="Ingresar" action="#{loginBean.login}" 
                                             type="submit"/>
                            <h:commandButton value="Borrar" type="reset"/>
                            <br/>
                            <br/>
                            <h:commandLink value="Registrarse" 
                                           action="crearUsuario.xhtml?faces-redirect=true"/>
                            <br/>
                            <h:commandLink value="Olvidé mi contraseña" 
                                           action="recuperarContrasena.xhtml?faces-redirect=true"/>
                        </rich:panel>
                    </center>
                </h:form>
            </ui:define>
        </ui:composition>
    </h:body>
</html>

